-
Notifications
You must be signed in to change notification settings - Fork 2
test: add multi gateway case #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: ashing <[email protected]>
Signed-off-by: ashing <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds test cases and supporting code for testing multi-gateway scenarios. Key changes include:
- Introducing support for multiple Gateway groups in the test scaffold.
- Updating dataplane tunnel creation to be reusable across additional gateway groups.
- Adding new e2e tests for multi-gateway HTTPRoute functionality.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/scaffold/scaffold.go | Added data structures and helper functions for multiple gateways. |
| test/e2e/scaffold/dp.go | Refactored dataplane tunnel creation to utilize the common helper. |
| test/e2e/gatewayapi/httproute.go | Added multi-gateway HTTPRoute test case and resource creation steps. |
| internal/controller/config/config.go | Removed an unused function. |
| config/samples/config.yaml | Removed commented-out configuration for a cleaner sample. |
Signed-off-by: ashing <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces support for multiple gateway groups by extending the test scaffold and adding a multi-gateway test case for HTTPRoutes. It also refactors dataplane tunnel creation, renames several misnamed variables in HTTPRoute tests, and removes unused or commented-out code from configuration files.
- Added additionalGatewayGroups support and cleanup in the scaffold.
- Refactored dataplane tunnel creation to use a common helper.
- Extended HTTPRoute tests to verify multi-gateway behavior and cleaned up variable names.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/scaffold/scaffold.go | Added additional gateway groups support and cleanup logic |
| test/e2e/scaffold/dp.go | Refactored tunnel creation using createDataplaneTunnels |
| test/e2e/gatewayapi/httproute.go | Updated test cases for multi-gateway and fixed variable names |
| internal/controller/config/config.go | Removed unused validation function |
| config/samples/config.yaml | Removed commented-out configuration samples |
Signed-off-by: ashing <[email protected]>
Signed-off-by: ashing <[email protected]>
Signed-off-by: ashing [email protected]